if not ( RES_DISTRIB == 2 ) then Error("Please Install Resource Distribution 2 Addon.'" ) return end

TOOL.Category = 'Mining'
TOOL.Name = 'Storage'
TOOL.Command = nil
TOOL.ConfigName = ''
if (CLIENT and GetConVarNumber("RD_UseLSTab") == 1) then TOOL.Tab = "ESN Customs" end

TOOL.ClientConVar['type'] = 'mineral_storage'
TOOL.ClientConVar['model'] = 'models/ce_miningmodels/miningstorage/storage_small.mdl'


cleanup.Register('miningstor')

if ( CLIENT ) then
	language.Add( 'Tool_mineralstor_name', 'Mineral Storage Device Spawner' )
	language.Add( 'Tool_mineralstor_desc', 'Create Mineral Storage Devices attached to any surface.' )
	language.Add( 'Tool_mineralstor_0', 'Click somewhere to attach a Mineral Storage Device.' )

	language.Add( 'Undone_mineralstor', 'Mineral Storage Device Undone' )
	language.Add( 'Cleanup_mineralstor', 'Mineral Storage Device' )
	language.Add( 'Cleaned_mineralstor', 'Cleaned up all Mineral Storage Devices' )
	language.Add( 'SBoxLimit_mineralstor', 'Maximum Mineral Storage Devices Reached' )
end


local mineralstor_models = {


	{ 'Mineral Storage', 'models/ce_miningmodels/miningstorage/storage_small.mdl', 'mineral_storage' },

}

RD2_ToolRegister( TOOL, mineralstor_models, nil, "mineralstor", 5 )


